package com.community.service.impl.fq;

import com.community.domain.fq.csd_parking;
import com.community.mapper.fq.ParkMapper;
import com.community.service.fq.ParkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class ParkServiceImpl implements ParkService {
    @Autowired
    private ParkMapper parkMapper;
    @Override
    public List<csd_parking> selectParkList(csd_parking parking) {
        return parkMapper.selectParkList(parking);
    }
    public int delPark(int  id) {return parkMapper.delPark(id);}
    public int addPark(csd_parking parking) {return parkMapper.addPark(parking);}
    public int updatePark(csd_parking parking) {return parkMapper.updatePark(parking);}
//    public csd_parking checkhouseId(String houseId){return parkMapper.checkhouseId(houseId);}

    @Override
    public csd_parking checcode(String code, String parkingLotCode, String parkingLotName) {
        return parkMapper.checcode(code,parkingLotCode,parkingLotName);
    }
//    @Override
//    public String checkHouseNum(String houseNum) {
//        return parkMapper.checkHouseNum(houseNum);
//    }
    @Override
    public csd_parking selectParkInfoById(int id){
        return parkMapper.selectParkInfoById(id);
    }
}
